﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
public partial class uc_productcategory : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string cid = string.Empty;
        if (!IsPostBack)
        {
            if (Request.QueryString["cid"] != null)
                cid = Request.QueryString["cid"].ToString();
            else
                cid = "0";
            if (int.Parse("0" + new CmsBLL().Category_GetTotalSubCategory(int.Parse(cid))) > 0)
                ltProductCategory.Text = new CmsBLL().RenderProductByMultiCategory(cid, "default", "", 18, 10, 0, "ClientJumpPageProByMultiCate", CommonBLL.SiteID);
            else
                ltProductCategory.Text = new CmsBLL().RenderProductByCategory(cid, "default", "", 18, 10, 0, "ClientJumpPageProByCate", CommonBLL.SiteID);
        }
    }    
}